import {
  get,
  post,
  _put
} from './http'

export const getOrderList = (params) => {
  let url = "/api/orderList";
  return get(url, params)
}

export const editOrder = (params) => {
  let url = "/api/orderList/" + params.id;
  return _put(url, params)
}

export const getOrderById = (params) => {
  let url = "/api/orderList/" + params;
  return get(url, params)
}

export const addCommit = (params) => {
  let url = "/api/commitList?orderId=" + params.orderId;
  return post(url, params)
}